#include "GlGraphicComponent.h"

#include "GlCommon.h"
#include "GlPosition.h"

namespace GraphicLibrary
{
	float GraphicComponent::msSaturation(1.0f);
	//-------------------------------------------
	Position GraphicComponent::getPosition() const
	{
		return Position(getX(), getY());
	}

	//-------------------------------------------
	float GraphicComponent::getAngleTo(const Position &newPos) const
	{
		return GraphicLibrary::getAngleTo(getPosition(), newPos);
	}

	//-------------------------------------------------
	Position GraphicComponent::getPositionAt(const float direction, const float distance)
	{
		return GraphicLibrary::shiftPos(getPosition(), direction, distance);
	}

	//-------------------------------------------------
	GraphicComponent::~GraphicComponent()
	{
	}
}
